package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.Assessment;
import com.zhijian.medical.entity.vo.request.AssessmentSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.AssessmentSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 考核主表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-01-17 16:40:22
 */
public interface AssessmentService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    Assessment selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    AssessmentVo selectVoById(Long id);

    /**
     * 根据状态查找
     *
     * @param status
     * @return
     */
    List<Assessment> selectByStatus(Byte status);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param assessment
     * @return
     */
    Long insert(Assessment assessment);

    /**
     * 保存
     *
     * @param assessmentSaveOrUpdateVo
     * @return
     */
    boolean save(AssessmentSaveOrUpdateVo assessmentSaveOrUpdateVo);

    /**
     * 更改
     *
     * @param assessment
     * @return
     */
    boolean update(Assessment assessment);

    /**
     * 更改
     *
     * @param assessmentSaveOrUpdateVo
     * @return
     */
    boolean modify(AssessmentSaveOrUpdateVo assessmentSaveOrUpdateVo);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(Assessment record);

    /**
     * 总数
     *
     * @param assessmentSearchVo
     * @return
     */
    Integer count(AssessmentSearchVo assessmentSearchVo);

    /**
     * 列表
     *
     * @param assessmentSearchVo
     * @return
     */
    List<AssessmentVo> selectList(AssessmentSearchVo assessmentSearchVo);

    /**
     * 分页查询
     *
     * @param assessmentSearchVo
     * @return
     */
    Page<AssessmentVo> selectPage(AssessmentSearchVo assessmentSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<Assessment> entities);

    /**
     * 根据学习班ID查询
     *
     * @param studyClassId
     * @return
     */
    Assessment selectByStudyClassId(Long studyClassId);

}